import request from '../utils/request';

export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};


export const getData =  (url,params) =>  request.get(url,{params});

export const postData =  (url,params) =>  request.post(url,params);

export const putData =  (url,params) =>  request.put(url,params);

export const deleteData =  (url,params) =>  request.delete(url,params);



